package com.yzf.demo.demo.array;

import java.util.ArrayList;

/**
 * Created by 于占峰 on 2020/3/26/026.
 */
public class ArrayListTest {
    public static void main(String[] args) {

        ArrayList<Integer> arrayList = new ArrayList<>();
        for (int i = 1; i < 50; i++) {
            arrayList.add(i);
        }
        System.out.println(arrayList);
        arrayList.forEach(System.out::println);
        arrayList.forEach(i -> System.out.println(i));

        long count = arrayList.stream().filter(i -> i > 20).count();


    }
}
